﻿using NUnit.Framework;

namespace Simpliciti.FunctionalCSharp.Tests
{
    [TestFixture]
    public class PatternMatchFixtures
    {
        [Test]
        public void Should_match()
        {
            var string_to_match = "HellWorld";
            var matchFound = string_to_match.Match()
                .With(x => x.Equals("HellWorld"), x => true)
                .Else(x=> false)
                .Do();

            Assert.IsTrue(matchFound);
        }
    }
}